Encoding & Decoding

  • A type that can encode itself to a JSON representation.

    See more

    Declaration

    Swift

    public protocol JSONEncodable : Encodable
  • A type that can decode itself from a JSON representation.

    See more

    Declaration

    Swift

    public protocol JSONDecodable : Decodable
  • A type that can be both decoded from and encoded to a JSON representation.

    Declaration

    Swift

    public typealias JSONCodable = JSONDecodable & JSONEncodable
  • Declaration

    Swift

    struct Array<Element> : _DestructorSafeContainer
  • Declaration

    Swift

    struct Dictionary<Key, Value> where Key : Hashable
  • Declaration

    Swift

    enum Optional<Wrapped> : ExpressibleByNilLiteral